(function () {
  'use strict';

  /**
   * @ngdoc overview
   * @name componentsApp
   * @description
   * # componentsApp
   *
   * Main module of the application.
   */
  angular.module('sasApp', [
    'ngAnimate',
    'ngCookies',
    'ngSanitize',
    'ngMaterial',
    'ngMessages',
    'ui.router',
    'sasApp.controllers',
    'sasApp.services',
    'sasApp.directives',
    'sasApp.filters',
    'components.dsPage',
    'restangular'
  ])
    .config(function ($stateProvider, $urlRouterProvider, $mdThemingProvider,$httpProvider) {
      $httpProvider.interceptors.push('sasInterceptor');
      $mdThemingProvider.theme('teal')
        .primaryPalette('blue');
      $urlRouterProvider.otherwise('/sas/omdisplay');
      $stateProvider
        .state('login', {
          url: '/login',
          templateUrl: 'views/login/login.html',
          controller: 'loginController'
        })
        .state('sas', {
          abstract: true,
          url: '/sas',
          templateUrl: 'views/main.html',
          controller: 'mainController',
          resolve: {
            // Roles: function(CoreServer){
            //   return CoreServer.getRoles().then(
            //     function success(res){
            //       if(res.state === '10000'){
            //         return res.data;
            //       }else{
            //         return [];
            //       }
            //     }
            //   );
            // },
            Provinces: function (CoreServer) {
              return CoreServer.getProvince().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            },
            BusinessLine: function (CoreServer) {
              return CoreServer.getBusiness().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            },
            System: function (Restangular) {
              return Restangular.one('sas/common/sysQuery').get().then(function (res) {
                return res.data;
              });
            },
            SystemModules: function(SystemModulesService) {
              return SystemModulesService.getSystemModules('sas',function(res){
                return res.data;
              })
            }
          }
        })
        //多维展示
        .state('sas.omdisplay', {
          url: '/omdisplay',
          views: {
            'view': {
              templateUrl: 'views/OMDisplay/main.html'
            }
          }
        })
        .state('sas.omdisplay.sysBusinessStatistics', {
          url: '/sbs',
          templateUrl: 'views/OMDisplay/sysBusinessStatistics/sysBusinessStatistics.html',
          controller: 'SysBusStatCtrl'
        })
        .state('sas.omdisplay.sysBusinessStatistics.sumStatistics', {
          url: '/sumStatistics',
          templateUrl: 'views/OMDisplay/sysBusinessStatistics/sumStatistics.html',
          controller: 'sbsSumStatisticsCtrl'
          // resolve:{
          //   Agency: function(sumStatisticsServe){
          //     return sumStatisticsServe.queryAgency().then(
          //       function success(res){
          //         if(res.state === '10000'){
          //           return res.data;
          //         }else{
          //           return [];
          //         }
          //       }
          //     );
          //   },
          //   Channels:function(sumStatisticsServe){
          //     var bl = {
          //       businessLine: ['3']
          //     };
          //     return sumStatisticsServe.queryChannels(bl).then(
          //       function success(res){
          //         if(res.state === '10000'){
          //           return res.data;
          //         }else{
          //           return [];
          //         }
          //       }
          //     );
          //   }
          // }
        })
        .state('sas.omdisplay.sysBusinessStatistics.tradePercentage', {
          url: '/tradePercentage',
          templateUrl: 'views/OMDisplay/sysBusinessStatistics/tradePercentage.html',
          controller: 'TradePercentageCtrl'
        })
        .state('sas.omdisplay.sysBusinessStatistics.contrastiveAnalysis', {
          url: '/contrastiveAnalysis',
          templateUrl: 'views/OMDisplay/sysBusinessStatistics/contrastiveAnalysis.html',
          controller: 'contrastiveAnalysisCtrl',
          resolve: {
            getAgency: function (contrastiveAnalysis) {
              return contrastiveAnalysis.agencyQuery().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            },
            getChannel: function (contrastiveAnalysis) {
              return contrastiveAnalysis.accessChannelsQuery({
                businessLine: ['3']
              }).then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            }
          }
        })
        .state('sas.omdisplay.recAbnormal', {
          url: '/recAbnormal',
          templateUrl: 'views/OMDisplay/recAbnormal/recAbnormal.html',
          controller: 'RecAbnormalCtrl'
        })
        .state('sas.omdisplay.recAbnormal.diffCount', {
          url: '/diffCount',
          templateUrl: 'views/OMDisplay/recAbnormal/diffCount.html',
          controller: 'diffCountCtrl'
        })
        .state('sas.omdisplay.recAbnormal.fileDetail', {
          url: '/fileDetail',
          templateUrl: 'views/OMDisplay/recAbnormal/fileDetail.html',
          controller: 'fileDetailCtrl'
        })
        //银行总对总签解约
        .state('sas.omdisplay.bankATA', {
          url: '/baa',
          templateUrl: 'views/OMDisplay/bankATA/bankATA.html',
          controller: 'bankATACtrl'
        })
        .state('sas.omdisplay.bankATA.stStatistics', {
          url: '/stStatistics',
          templateUrl: 'views/OMDisplay/bankATA/stStatistics.html',
          controller: 'stStatisticsCtrl',
          resolve: {
            QueryBankList: function (stStatisticsServe) {
              return stStatisticsServe.queryBankList().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            }
          }
        })
        .state('sas.omdisplay.busAssess', {
          url: '/busAssess',
          templateUrl: 'views/OMDisplay/busAssessment/busAssessment.html',
          controller: 'busAssessmentCtrl'
        })
        .state('sas.omdisplay.busAssess.amidResult', {
          url: '/amidResult',
          templateUrl: 'views/OMDisplay/busAssessment/amidResult.html',
          controller: 'amidResultCtrl'
        })
        .state('sas.omdisplay.busAssess.provincial', {
          url: '/provincial',
          templateUrl: 'views/OMDisplay/busAssessment/provincialAssess.html',
          controller: 'provAssessCtrl'
        })
        .state('sas.omdisplay.busAssess.upay', {
          url: '/upayAssess',
          templateUrl: 'views/OMDisplay/busAssessment/upayAssess.html',
          controller: 'upayAssessCtrl'
        })
        //故障定位--应用告警统计
        .state('sas.faultLocation', {
          url: '/faultLocation',
          views: {
            'view': {
              templateUrl: 'views/faultLocation/main.html',
              controller: 'FaultLocationCtrl'
            }
          }
        })
        .state('sas.faultLocation.alarmStatisticAnalysis', {
          url: '/alarmStatisticAnalysis',
          templateUrl: 'views/faultLocation/alarmStatisticAnalysis/alarmStatisticAnalysis.html',
          controller: 'alarmStatisticAnalysisCtrl'
        })
        //可用
        .state('sas.faultLocation.alarmStatisticAnalysis.appAlarm', {
          url: '/appAlarm',
          templateUrl: 'views/faultLocation/alarmStatisticAnalysis/appAlarm.html',
          controller: 'appAlarmCtrl'
        })
        //被过滤
        .state('sas.faultLocation.alarmStatisticAnalysis.strain', {
          url: '/strain',
          templateUrl: 'views/faultLocation/alarmStatisticAnalysis/strain.html',
          controller: 'appAlarmStrainCtrl'
        })
        //故障定位--应用告警统计对比分析
        .state('sas.faultLocation.appAlarmAnalysis', {
          url: '/appAlarmAnalysis',
          templateUrl: 'views/faultLocation/analysis/appAlarmAnalysis.html',
          controller: 'appAlarmAnalysisCtrl'
        })
        //应用告警统计对比分析
        .state('sas.faultLocation.appAlarmAnalysis.analysis', {
          url: '/analysis',
          templateUrl: 'views/faultLocation/analysis/analysis.html',
          controller: 'analysisCtrl'
        })
        .state('sas.faultLocation.tradeLog', {
          url: '/tradeLog',
          templateUrl: 'views/faultLocation/tradeLog/tradeLog.html',
          controller: 'TradeLogCtrl',
          resolve: {
            IndexIsAnormal: function (TradeLogQueryServer) {
              return TradeLogQueryServer.indexCheck(function (res) {
                return (res.state !== '10000');
              });
            }
          }
        })
        .state('sas.faultLocation.tradeLog.query', {
          url: '/query',
          templateUrl: 'views/faultLocation/tradeLog/tradeLogQuery.html',
          controller: 'TradeLogQueryCtrl'
        })
        .state('sas.faultLocation.tradeLog.management', {
          url: '/management',
          templateUrl: 'views/faultLocation/tradeLog/tradeLogManagement.html',
          controller: 'TradeLogManageCtrl'
        })
        .state('sas.faultLocation.endAnalysis', {
          url: '/end',
          templateUrl: 'views/faultLocation/endAnalysis/endAnalysis.html',
          controller: 'endAnalysisCtrl'
        })
        //端到端详细细分时长
        .state('sas.faultLocation.endAnalysis.endDetailed', {
          url: '/endDetailed',
          templateUrl: 'views/faultLocation/endAnalysis/endDetailed.html',
          controller: 'endDetailedCtr'
        })
        .state('sas.faultLocation.endAnalysis.analysis', {
          url: '/endanalysis',
          templateUrl: 'views/faultLocation/endAnalysis/analysis.html',
          controller: 'endAnalysisCtrl'
        })
        .state('sas.faultLocation.endAnalysis.components', {
          url: '/endanalysiss',
          templateUrl: 'views/faultLocation/endAnalysis/compareAnalysis.html',
          controller: 'compareAnalysisCtrl'
        })
        .state('sas.faultLocation.failureLocation', {
          url: '/failureLocation',
          templateUrl: 'views/faultLocation/failureLocation/failureLocation.html',
          controller: 'failureLocationCtrl'
        })
        .state('sas.faultLocation.failureLocation.found', {
          url: '/found',
          templateUrl: 'views/faultLocation/failureLocation/failureFound.html',
          controller: 'failureFoundCtrl'
        })
        .state('sas.faultLocation.failureLocation.model', {
          url: '/model',
          templateUrl: 'views/faultLocation/failureLocation/failureModel.html',
          controller: 'failureModelCtrl'
        })
        .state('sas.faultLocation.failureLocation.notice', {
          url: '/notice',
          templateUrl: 'views/faultLocation/failureLocation/failureNotice.html',
          controller: 'failureNoticeCtrl',
          resolve: {
            Notice: function (FailureNoticeServer) {
              return FailureNoticeServer.noticeQuery().then(function (res) {
                if (res.state === '10000') {
                  return res.data
                } else {
                  return {};
                }
              });
            }
          }
        })
        //吴尧 2015-05-25
        .state('sas.oldOMDisplay.infoView', {
          url: '/infoView',
          templateUrl: 'views/oldOMDisplay/infoView/infoView.html',
          controller: 'infoViewCtrl'
        })
        .state('sas.oldOMDisplay.infoView.customerDevelopment', {
          url: '/customerDevelopment',
          templateUrl: 'views/oldOMDisplay/infoView/customerDevelopment.html',
          controller: 'customerAnalysisCtrl'
        })
        .state('sas.oldOMDisplay.infoView.twoBusinessAnalysis', {
          url: '/twoBusinessAnalysis',
          templateUrl: 'views/oldOMDisplay/infoView/twoBusinessAnalysis.html',
          controller: 'twoBusinessController'
        })
        .state('sas.oldOMDisplay.infoView.trafficAnalysis', {
          url: '/trafficAnalysis',
          templateUrl: 'views/oldOMDisplay/infoView/trafficAnalysis.html',
          controller: 'trafficAnalysisController'
        })
        .state('sas.oldOMDisplay.infoView.valueAnalysis', {
          url: '/valueAnalysis',
          templateUrl: 'views/oldOMDisplay/infoView/valueAnalysis.html',
          controller: 'valueAnalysisController'
        })
        .state('sas.oldOMDisplay.infoView.operationAnalysis', {
          url: '/operationAnalysis',
          templateUrl: 'views/oldOMDisplay/infoView/operationAnalysis.html',
          controller: 'operationAnalysisController'
        })
        .state('sas.oldOMDisplay.infoView.businessChannelAnalysis', {
          url: '/businessChannelAnalysis',
          templateUrl: 'views/oldOMDisplay/infoView/businessChannelAnalysis.html',
          controller: 'businessChannelController'
        })
        .state('sas.oldOMDisplay.infoView.developeAnalysis', {
          url: '/developeAnalysis',
          templateUrl: 'views/oldOMDisplay/infoView/developeAnalysis.html',
          controller: 'developeAnalysisController'
        })
        //业务量统计
        .state('sas.oldOMDisplay.sysBusinessStatistic', {
          url: '/sysBusinessStatistic',
          tmeplateUrl: 'views/oldOMDisplay/sysBusinessStatistic/sysBusinessStatistic.html'
        })
        .state('sas.oldOMDisplay.sysBusinessStatistic.pbossBusinessStatistic', {
          url: '/pbossBusinessStatistic',
          tmeplateUrl: 'views/oldOMDisplay/sysBusinessStatistic/sysBusinessStatistic.html'
        })
        //物联网质量管理2
        .state('sas.oldOMDisplay.pbossOm', {
          url: '/pbossOm2',
          templateUrl: 'views/oldOMDisplay/pbossOm/pbossOm.html',
          controller: 'PBOSSController'
        })
        .state('sas.oldOMDisplay.pbossOm.businessDetail', {
          url: '/businessDetail',
          templateUrl: 'views/oldOMDisplay/pbossOm/businessDetail.html',
          controller: 'businessDetailController'
        })
        .state('sas.oldOMDisplay.sysResource', {
          url: '/sysResource',
          templateUrl: 'views/oldOMDisplay/sysResource/sysResource.html',
          controller: 'resourceCtrl'
        })
        //物联网质量管理1
        .state('sas.faultLocation.pbossOm', {
          url: '/pbossOm',
          templateUrl: 'views/faultLocation/pbossOm/pbossOm.html'
        })
        .state('sas.oldOMDisplay.sysResource.hostResource', {
          url: '/host',
          templateUrl: 'views/oldOMDisplay/sysResource/hostResource.html',
          controller: 'hostResourceController'
        })
        .state('sas.oldOMDisplay.sysResource.cpuResource', {
          url: '/cpuResource',
          templateUrl: 'views/oldOMDisplay/sysResource/cpuResource.html',
          controller: 'cpuResourceController'
        })
        .state('sas.oldOMDisplay.sysResource.ramResource', {
          url: '/ramResource',
          templateUrl: 'views/oldOMDisplay/sysResource/ramResource.html',
          controller: 'ramResourceController'
        })
        .state('sas.oldOMDisplay.sysResource.diskResource', {
          url: '/diskResource',
          templateUrl: 'views/oldOMDisplay/sysResource/diskResource.html',
          controller: 'diskResourceController'
        })
        .state('sas.oldOMDisplay.sysResource.networkResource', {
          url: '/networkResource',
          templateUrl: 'views/oldOMDisplay/sysResource/networkResource.html',
          controller: 'networkController'
        })
        .state('sas.oldOMDisplay.sysResource.dataBase', {
          url: '/dataBase',
          templateUrl: 'views/oldOMDisplay/sysResource/dataBase.html',
          controller: 'dataBaseController'
        }).state('sas.oldOMDisplay.sysResource.dataBaseson', {
          url: '/dataBaseson',
          templateUrl: 'views/oldOMDisplay/sysResource/dataBaseson.html',
          controller: 'dataBasesonController'
        })
        .state('sas.oldOMDisplay.sysResource.resourceUseRate', {
          url: '/resourceUseRate',
          templateUrl: 'views/oldOMDisplay/sysResource/resourceUseRate.html',
          controller: 'resourceUseRateController'
        })
        .state('sas.oldOMDisplay.pbossOm.userStatus', {
          url: '/userStatus',
          templateUrl: 'views/oldOMDisplay/pbossOm/userStatus.html',
          controller: 'userStatusController'
        })
        .state('sas.oldOMDisplay.pbossOm.serviceOpen', {
          url: '/serviceOpen',
          templateUrl: 'views/oldOMDisplay/pbossOm/serviceOpen.html',
          controller: 'serviceOpenController'
        })
        .state('sas.oldOMDisplay.pbossOm.productManagement', {
          url: '/productManagement',
          templateUrl: 'views/oldOMDisplay/pbossOm/productManagement.html',
          controller: 'productManagementController'
        })
        .state('sas.oldOMDisplay.pbossOm.orderRelation', {
          url: '/orderRelation',
          templateUrl: 'views/oldOMDisplay/pbossOm/orderRelation.html',
          controller: 'orderRelationController'
        })
        .state('sas.oldOMDisplay.pbossOm.dateConsistencyAnalysis', {
          url: '/dateConsistencyAnalysis',
          templateUrl: 'views/faultLocation/pbossOm/dateConsistencyAnalysis.html',
          controller: 'consistencyAnalysisController'
        })
        .state('sas.faultLocation.systemTrading.sysTrading', {
          url: '/sysTrading',
          templateUrl: 'views/faultLocation/pbossOm/sysTrading.html',
          controller: 'sysTradingController'
        })
        .state('sas.faultLocation.pbossOm.robot', {
          url: '/robot',
          templateUrl: 'views/faultLocation/pbossOm/robot.html',
          controller: 'robotController'
        })
        .state('sas.faultLocation.systemTrading', {
          url: '/systemTrad',
          templateUrl: 'views/faultLocation/pbossOm/systemTrading.html',
          // controller:'robotController'
        })
        .state('sas.faultLocation.pbossOm.5ICCID', {
          url: '/5ICCID',
          templateUrl: 'views/faultLocation/pbossOm/5ICCID.html',
          controller: '5ICCIDController'
        })
        .state('sas.faultLocation.pbossOm.IMSSI', {
          url: '/IMSSI',
          templateUrl: 'views/faultLocation/pbossOm/IMSSI.html',
          controller: 'IMSSIController'
        })
        .state('sas.faultLocation.pbossOm.numberMark', {
          url: '/numberMark',
          templateUrl: 'views/faultLocation/pbossOm/numberMark.html',
          controller: 'numberMarkController'
        })
        .state('sas.faultLocation.pbossOm.number', {
          url: '/number',
          templateUrl: 'views/faultLocation/pbossOm/number.html',
          controller: 'numberController'
        })
        .state('sas.faultLocation.pbossOm.numberRecycle', {
          url: '/numberRecycle',
          templateUrl: 'views/faultLocation/pbossOm/numberRecycle.html',
          controller: 'numberRecycleController'
        })

        // .state('sas.failureLocation.notice',{
        //   url: '/notice',
        //   templateUrl: 'views/faultLocation/failureLocation/failureNotice.html',
        //   controller: 'failureNoticeCtrl'
        // })
        .state('sas.faultLocation.systemTrading.PBOSS', {
          url: '/PBOSS',
          templateUrl: 'views/faultLocation/pbossOm/PBOSS.html',
          controller: 'PBOSSController'
        })
        //系统性能统计(shen'jia)
        .state('sas.oldOMDisplay.sysPerf', {
          url: '/sysPerf',
          templateUrl: 'views/oldOMDisplay/oldSystemPerform/sysPerf.html',
          controller: 'oldSystemPerformMainController'
        })
        //系统性能统计(shen'jia)
        .state('sas.oldOMDisplay.sysPerf.sysPerform', {
          url: '/sysPerform',
          templateUrl: 'views/oldOMDisplay/oldSystemPerform/sysPerform.html',
          controller: 'oldSystemPerformController'
        })
        //系统性能统计(shen'jia)
        .state('sas.oldOMDisplay.sysPerf.stagePerform', {
          url: '/stagePerform',
          templateUrl: 'views/oldOMDisplay/oldSystemPerform/stagePerform.html',
          controller: 'oldSystemStagePerformController'
        })
        //设置系统性能(shen'jia)
        .state('sas.oldOMDisplay.sysPerf.setPerform', {
          url: '/setPerform',
          templateUrl: 'views/oldOMDisplay/oldSystemPerform/setSysPerform.html',
          controller: 'oldSystemSetSysPerformController'
        })
        //设置系统性能(shen'jia)
        .state('sas.oldOMDisplay.sysPerf.watch', {
          url: '/watch',
          templateUrl: 'views/oldOMDisplay/oldSystemPerform/form/watch.html',
          controller: 'chaKanPerformCtrl'
        })
        //查看新增--设置系统性能(shen'jia)
        .state('sas.oldOMDisplay.sysPerf.watchAdd', {
          url: '/watchAdd',
          templateUrl: 'views/oldOMDisplay/oldSystemPerform/form/watchAdd.html',
          controller: 'chaKanP'
        })
        //系统健康度(shen'jia)
        .state('sas.oldOMDisplay.oldHealthy', {
          url: '/oldHealthy',
          templateUrl: 'views/oldOMDisplay/oldHealthy/oldHealthyMain.html',
          controller: 'oldHealthycontroller'
        })
        //当前健康度(shen'jia)
        .state('sas.oldOMDisplay.oldHealthy.current', {
          url: '/current',
          templateUrl: 'views/oldOMDisplay/oldHealthy/current.html',
          controller: 'oldHealthyCurrentController'
        })
        //历史健康度(shen'jia)
        .state('sas.oldOMDisplay.oldHealthy.history', {
          url: '/history',
          templateUrl: 'views/oldOMDisplay/oldHealthy/history.html',
          controller: 'oldHealthyhistoryController'
        })
        //系统业务量统计(shen'jia)
        .state('sas.faultLocation.sysBus', {
          url: '/sysBus',
          templateUrl: 'views/faultLocation/sysBusinessCount/sysBusCount.html',
          controller: 'sysBusController'
        })
        //byTime(shen'jia)
        .state('sas.faultLocation.sysBus.byTime', {
          url: '/byTime',
          templateUrl: 'views/faultLocation/sysBusinessCount/byTime.html',
          controller: 'byTimeController'
        })
        //byProvince(shen'jia)
        .state('sas.faultLocation.sysBus.byProvince', {
          url: '/byProvince',
          templateUrl: 'views/faultLocation/sysBusinessCount/byProvince.html',
          controller: 'byProvinceController'
        })
        //successRate(shen'jia)
        .state('sas.faultLocation.sysBus.successRate', {
          url: '/successRate',
          templateUrl: 'views/faultLocation/sysBusinessCount/successRate.html',
          controller: 'successRateController'
        })
        //thirty(shen'jia)
        .state('sas.faultLocation.sysBus.thirty', {
          url: '/thirty',
          templateUrl: 'views/faultLocation/sysBusinessCount/thirty.html',
          controller: 'thirtyController'
        })
        .state('sas.omdisplay.failed', {
          url: '/failed',
          templateUrl: 'views/OMDisplay/failedTrade/failed.html',
        })
        .state('sas.omdisplay.failed.failedTrade', {
          url: '/failedTrade',
          templateUrl: 'views/OMDisplay/failedTrade/failedTrade.html',
          controller: 'failedTradeCtrl',
          resolve: {
            getAgency: function (contrastiveAnalysis) {
              return contrastiveAnalysis.agencyQuery().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            },
            getChannel: function (contrastiveAnalysis) {
              return contrastiveAnalysis.accessChannelsQuery({
                businessLine: ['3']
              }).then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            }
          }
        })
        //成功率
        .state('sas.omdisplay.success', {
          url: '/successRateTitle',
          templateUrl: 'views/OMDisplay/successRate/successRateTitle.html',
          controller: 'successRateTitleCtrl'
        })
        .state('sas.omdisplay.success.successRate', {
          url: '/successRate',
          templateUrl: 'views/OMDisplay/successRate/successRate.html',
          controller: 'srSuccessRateController'
        })
        //日志管理(shen'jia)
        .state('sas.userAll.logMng', {
          url: '/logMng',
          templateUrl: 'views/sysMng/logMng/logMain.html',
          controller: 'logMainController'
        })
        .state('sas.userAll.logMng.logQuery', {
          url: '/logQuery',
          templateUrl: 'views/sysMng/logMng/logQuery.html',
          controller: 'logQueryCtrl'
        })
        //日志备份删除(shen'jia)
        .state('sas.userAll.logMng.backupLog', {
          url: '/backupLog',
          templateUrl: 'views/sysMng/logMng/logBackup.html',
          controller: 'logBackupController'
        })
        //角色管理
        .state('sas.userAll.roleMng', {
          url: '/roleMng',
          templateUrl: 'views/sysMng/roleMng/roleMng.html'
        })
        .state('sas.userAll.roleMng.roleManager', {
          url: '/roleManager',
          templateUrl: 'views/sysMng/roleMng/roleManager.html',
          controller: 'roleManagerCtrl'

        })
        //系统管理(shen'jia)
        .state('sas.userAll', {
          url: '/userAll',
          views: {
            'view': {
              templateUrl: 'views/sysMng/main.html',
              controller: 'sysMngCtrl'
            }
          }
        })
        //用户管理(shen'jia)
        .state('sas.userAll.userMng', {
          url: '/userMng',
          templateUrl: 'views/sysMng/userMng/userMng.html'
        })
        .state('sas.userAll.userMng.userManager', {
          url: '/userManager',
          templateUrl: 'views/sysMng/userMng/usermanager.html',
          controller: 'userSearchCtrl'
        })
        //角色授权(yangXiaowei)
        .state('sas.userAll.roleSelect', {
          url: '/roleSelect',
          templateUrl: 'views/sysMng/roleGrant/authorityMng.html',
          controller: 'roleGrant'
        })
        .state('sas.userAll.roleSelect.show', {
          url: '/roleSelectShow',
          templateUrl: 'views/sysMng/roleGrant/roleSelect.html',
          controller: 'roleSelectCtrl'
        })
        //用户资料
        .state('sas.userAll.userInfo', {
          url: 'userInfo',
          templateUrl: 'views/sysMng/userDetail/userMng.html'
        })
        .state('sas.userAll.userInfo.userDetail', {
          url: '/userDetail',
          templateUrl: 'views/sysMng/userDetail/userDetail.html',
          controller: 'userDetailCtrl'
        })
        /*huangjq 业务质量分析页面*/
        .state('sas.timeDataDis', {
          url: '/timeDataDis',
          views: {
            'view': {
              templateUrl: 'views/timeDataDis/main1.html',
              controller: 'TimeDataDisCtrl'
            }
          }
        })
        .state('sas.resourcesWatchData.netDevInfo', {
          url: '/devInfo',
          templateUrl: 'views/resourcesWatchData/netDevInfoView/devInfo.html',
          controller: 'netDevInfoCtrl',
          resolve: {
            ResourceTypes: function (NetDevInfoViewServer) {
              return NetDevInfoViewServer.resourceQuery().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            }
          }
        })
        .state('sas.resourcesWatchData.netDevInfoDetail', {
          url: '/detail',
          templateUrl: 'views/resourcesWatchData/netDevInfoView/detail.html',
          controller: 'netDevInfoDetailCtrl'
        })
        .state('sas.resourcesWatchData.dbInfo', {
          url: '/dbInfo',
          templateUrl: 'views/resourcesWatchData/dbInfoView/dbInfo.html',
          controller: 'dbResInfoCtrl',
          resolve: {
            DBResource: function (DbInfoViewServer) {
              return DbInfoViewServer.getDBResource().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              );
            }
          }
        })
        .state('sas.resourcesWatchData.dbUsageDetail', {
          url: '/dbUsageDetail',
          templateUrl: 'views/resourcesWatchData/dbInfoView/dbDetail.html',
          controller: 'dbResUsageCtrl'
        })
        .state('sas.oldOMDisplay.upayQM', {
          url: '/upayQM',
          templateUrl: 'views/oldOMDisplay/upayQM/upayQM.html',
          controller: 'upayQMCtrl',
          resolve: {
            Bank: function (Restangular) {
              return Restangular.one('sas/OMdisplay/bankATA/bankList').get().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              )
            }
          }
        })
        .state('sas.oldOMDisplay.upayQM.tradeCompletion', {
          url: '/tradeCompletion',
          templateUrl: 'views/oldOMDisplay/upayQM/tradeCompletion.html',
          controller: 'tradeCompletionCtrl'
        })
        .state('sas.oldOMDisplay.upayQM.tradeStatistics', {
          url: '/tradeStatistics',
          templateUrl: 'views/oldOMDisplay/upayQM/tradeStatistics.html',
          controller: 'tradeStatisticsCtrl'
        })
        .state('sas.oldOMDisplay.upayQM.fullAbnormal', {
          url: '/fullAbnormal',
          templateUrl: 'views/oldOMDisplay/upayQM/fullAbnormal.html',
          controller: 'fullAbnormalCtrl'
        })
        .state('sas.oldOMDisplay.upayQM.billResult', {
          url: '/billResult',
          templateUrl: 'views/oldOMDisplay/upayQM/billResult.html',
          controller: 'billResultCtrl'
        })
        .state('sas.oldOMDisplay.upayQM.tradeStatRepForm', {
          url: '/tradeStatRepForm',
          templateUrl: 'views/oldOMDisplay/upayQM/tradeStatRepForm.html',
          controller: 'tradeStatRepFormCtrl'
        })
      /**老需求*/
        .state('sas.oldOMDisplay', {
          url: '/oldOMDisplay',
          views: {
            'view': {
              templateUrl: 'views/oldOMDisplay/main.html',
              controller: 'oldOMDisplay'
            }
          }
        })
        /*3.6运维开发情况统计*/
        .state('sas.oldOMDisplay.operationDevelop', {
          url: '/operationDevelop',
          templateUrl: 'views/oldOMDisplay/operationDevelop/operationDevelop.html',
          controller: 'odOperationDevelop'
        })
        .state('sas.oldOMDisplay.operationDevelop.problemNum', {
          url: '/problemNum',
          templateUrl: 'views/oldOMDisplay/operationDevelop/operationDevelopView.html',
          controller: 'odcOperationDevelopCtrl'
        })
        .state('sas.oldOMDisplay.operationDevelop.developNum', {
          url: '/developNum',
          templateUrl: 'views/oldOMDisplay/operationDevelop/developNum.html',
          controller: 'developNumCtroller'
        })
        .state('sas.oldOMDisplay.operationDevelop.sysOnlineChange', {
          url: '/sysOnlineChange',
          templateUrl: 'views/oldOMDisplay/operationDevelop/sysOnlineChange.html',
          controller: 'sysOnlineChangeController'
        })
        //业务运营分析
        .state('sas.oldOMDisplay.businessOperationAnalysis', {
          url: '/businessOperationAnalysis',
          templateUrl: 'views/oldOMDisplay/businessOperationAnalysis/businessOperationAnalysis.html',
          controller: 'mainOperationController'
        })
        .state('sas.oldOMDisplay.businessOperationAnalysis.accuracy', {
          url: '/accuracy',
          templateUrl: 'views/oldOMDisplay/businessOperationAnalysis/accuracy.html',
          controller: 'accuracyController'
        })
        //业务流程完整性分析
        .state('sas.oldOMDisplay.businessOperationAnalysis.integrityAnalysis', {
          url: '/integrityAnalysis',
          templateUrl: 'views/oldOMDisplay/businessOperationAnalysis/integrityAnalysis.html',
          controller: 'integrityAnalysisController'
        })
        /*5系统服务数据挖掘功能*/
        .state('sas.sysServiceData', {
          url: '/sysServiceData',
          views: {
            'view': {
              templateUrl: 'views/sysServiceData/main.html'
            }
          }
        })
        .state('sas.sysServiceData.pBossSuccessRate', {
          url: '/pBossSuccessRate',
          templateUrl: 'views/sysServiceData/pBossSuccessRate/pBossSuccessRateV.html',
          controller: 'pBossSuccessRateCtrl'
        })
        .state('sas.sysServiceData.pBossSuccessRate.show', {
          url: '/show',
          templateUrl: 'views/sysServiceData/pBossSuccessRate/pBossSuccessRateView.html',
          controller: 'pBossSuccessRateController'
        })
        .state('sas.sysServiceData.uPayCommissionRate', {
          url: '/uPayCommissionRate',
          templateUrl: 'views/sysServiceData/uPayCommissionRate/uPayCommissionRateV.html',
          controller: 'uPayCommissionRateCtrl'
        })
        .state('sas.sysServiceData.uPayCommissionRate.show', {
          url: '/show',
          templateUrl: 'views/sysServiceData/uPayCommissionRate/uPayCommissionRateView.html',
          controller: 'uPayCommissionRateController'
        })

        /********************/
        /*4资源监控数据挖掘功能*/
        .state('sas.resourcesWatchData', {
          url: '/resourcesWatchData',
          views: {
            'view': {
              templateUrl: 'views/resourcesWatchData/main.html'
            }
          }
        })
        /*资源监控-->系统告警数据挖掘*/
        .state('sas.resourcesWatchData.rmResourceMonitoring', {
          url: '/rmResourceMonitoring',
          templateUrl: 'views/resourcesWatchData/rmResourceMonitoring/resourceMonitoring.html',
          controller: 'rmresourceMonitoringController'
        })
        .state('sas.resourcesWatchData.rmResourceMonitoring.alarmNumExcavation', {
          url: '/alarmNumExcavation',
          templateUrl: 'views/resourcesWatchData/rmResourceMonitoring/sysAlarmNumExcavation.html',
          controller: 'rmAlarmNumExcavationController'
        })
        .state('sas.resourcesWatchData.allInfoDisplay', {
          url: '/allInfoDisplay',
          templateUrl: 'views/resourcesWatchData/allInfoDisplay/allInfoDisplay.html',
          controller: 'aidAllInfoDisplay'
        })
        .state('sas.resourcesWatchData.allInfoDisplay.infoDisplya', {
          url: '/infoDisplya',
          templateUrl: 'views/resourcesWatchData/allInfoDisplay/allInfoDisplayView.html',
          controller: 'allInfoDisplayController'
        })
        .state('sas.resourcesWatchData.detInfoDisplay', {
          url: '/detInfoDisplay',
          templateUrl: 'views/resourcesWatchData/detInfoDisplay/detInfoDisplayV.html',
          controller: 'didDetInfoDisplay'
        })
        .state('sas.resourcesWatchData.detInfoDisplay.infoDisplya', {
          url: '/infoDisplya',
          templateUrl: 'views/resourcesWatchData/detInfoDisplay/detInfoDisplayView.html',
          controller: 'detInfoDisplayController'
        })

        /*huangjq 重大活动*/
        .state('sas.customActivity', {
          url: '/customActivity',
          views: {
            'view': {
              templateUrl: 'views/customActivity/main.html'
            }
          }
        })
        /*huangjq 活动总结*/
        .state('sas.activity', {
          url: '/activity',
          views: {
            'view': {
              templateUrl: 'views/customActivity/main.html'
            }
          }
        })
        .state('sas.display', {
          url: '/display/:summaryId',
          views: {
            'view': {
              templateUrl: 'views/customActivity/display.html',
              controller: 'displayCtrl'
            }
          }
        })
        .state('sas.realTimeDisplay', {
          url: '/realTimeDisplay/:activityId',
          views: {
            'view': {
              templateUrl: 'views/customActivity/realTimeDisplay.html',
              controller: 'realtimeDisplayController'
            }
          }
        })
        .state('sas.activityEdit', {
          url: '/activityEdit',
          views: {
            'view': {
              templateUrl: 'views/customActivity/activityEdit.html',
              controller: 'realtimePreviewController'
            }
          }
        })
        .state('sas.summaryActivityEdit', {
          url: '/summaryActivityEdit',
          views: {
            'view': {
              templateUrl: 'views/customActivity/summaryActivityEdit.html',
              controller: 'summaryActivityEditCtrl'
            }
          }
        })
        /*个人页面定制*/
        .state('sas.userAll.personalPage', {
          url: '/infoDisplya',
          templateUrl: 'views/sysMng/personalPageCustomization/closeCustomization.html',
          controller: 'customization'
        })
        .state('sas.userAll.personalPage.customization', {
          url: '/customization',
          templateUrl: 'views/sysMng/personalPageCustomization/customization.html',
          controller: 'customizationCtrl'
        })
        /*liuyang 活动展示*/
        .state('sas.realTimeActivity', {
          url: '/realTimeActivity',
          views: {
            'view': {
              templateUrl: 'views/customActivity/activity.html',
              controller: 'activityListController'
            }
          }
        })
        .state('sas.summary', {
          url: '/summary',
          views: {
            'view': {
              templateUrl: 'views/customActivity/summary.html',
              controller: 'summaryCtrl'
            }
          }
        })
        //旧需求业务量统计做路径跳转
        .state('sas.businessStatistic', {
          url: '/businessStatistic',
          views: {
            'view': {
              templateUrl: 'views/sysBusinessStatistic/main.html'
            }
          }
        })
        .state('sas.businessStatistic.pboss', {
          url: '/pboss',
          templateUrl: 'views/sysBusinessStatistic/pobossBusinessStatistic/pobossBusinessStatistic.html',
          controller: 'pbosssBusinessCtrl'
        })
        //交易总量统计分析
        .state('sas.businessStatistic.pboss.sumStatistics', {
          url: '/sumStatistics',
          templateUrl: 'views/sysBusinessStatistic/pobossBusinessStatistic/sumStatistics.html',
          controller: 'pbossBusinessStatisticCtrl'
        })
        // 交易总量分省统计占比
        .state('sas.businessStatistic.pboss.tradePercentage', {
          url: '/pbossTradePercentage',
          templateUrl: 'views/sysBusinessStatistic/pobossBusinessStatistic/tradePercentage.html',
          controller: 'pbossTradePercentageCtrl'
        })
        // 业务成功率
        .state('sas.businessStatistic.pboss.contrastiveAnalysis', {
          url: '/pbossContrastiveAnalysis',
          templateUrl: 'views/sysBusinessStatistic/pobossBusinessStatistic/contrastiveAnalysis.html',
          controller: 'businessSuccessRateCtrl'
        })
        // 业务成功率
        .state('sas.businessStatistic.pboss.volumeTrend', {
          url: '/volumeTrend',
          templateUrl: 'views/sysBusinessStatistic/pobossBusinessStatistic/volumeTrend.html',
          controller: 'volumeTrendCtrl'
        })
        //系统运维统计
        .state('sas.analysisSysOM', {
          url: '/analysisSysOM',
          views: {
            'view': {
              templateUrl: 'views/analysisSysOM/main.html'
            }
          }
        })
        .state('sas.analysisSysOM.cleanCount', {
          url: '/clearCount',
          templateUrl: 'views/analysisSysOM/cleanCount/cleanCount.html',
          controller: 'cleanCountController'
        })
        .state('sas.analysisSysOM.cleanCount.handlingTimeDataShow', {
          url: '/handlingTime',
          templateUrl: 'views/analysisSysOM/cleanCount/cleanCountHandlingTime.html',
          controller: 'handlingTimeController'
        })
        .state('sas.analysisSysOM.cleanCount.timeTrendAnalysis', {
          url: '/timeTrendAnalysis',
          templateUrl: 'views/analysisSysOM/cleanCount/timeTrendAnalysisView.html',
          controller: 'timeTrendAnalysisController',
          resolve: {
            CCBusinessType: function (Restangular) {
              return Restangular.one('sas/analysisSysOM/cleanCount/queryCCBusinessType').get().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              )
            }
          }
        })
        .state('sas.analysisSysOM.cleanCount.finishSuccessRate', {
          url: '/finishSuccessRate',
          templateUrl: 'views/analysisSysOM/cleanCount/finishSuccessRateView.html',
          controller: 'finishSuccessRateController'
        })
        .state('sas.analysisSysOM.throughput', {
          url: '/throughput',
          templateUrl: 'views/analysisSysOM/throughput/tpsHead.html',
          controller: 'tpsController'
        })
        .state('sas.analysisSysOM.throughput.maxTps', {
          url: '/maxTps',
          templateUrl: 'views/analysisSysOM/throughput/maxTps.html',
          controller: 'maxTpsController'
        }).state('sas.analysisSysOM.throughput.avgTps', {
          url: '/avgTps',
          templateUrl: 'views/analysisSysOM/throughput/avgTps.html',
          controller: 'avgTpsController'
        })
        .state('sas.analysisSysOM.responseTime', {
          url: '/responseTime',
          templateUrl: 'views/analysisSysOM/responseTime/resTimeHead.html',
          controller: 'resTimeController'
        })
        /*.state('sas.analysisSysOM.responseTime.realTimeData', {
         url: '/realTimeData',
         templateUrl: '../views/analysisSysOM/responseTime/realTimeData.html',
         controller: 'realTimeController'
         })*/.state('sas.analysisSysOM.responseTime.historicalTimeData', {
          url: '/historicalTimeData',
          templateUrl: 'views/analysisSysOM/responseTime/historicalTimeData.html',
          controller: 'historicalTimeController'
        })
        .state('sas.analysisSysOM.tradTime', {
          url: '/tradTime',
          templateUrl: 'views/analysisSysOM/tradTime/tradTimeHead.html',
          controller: 'tradTimeController'
        })
        .state('sas.analysisSysOM.tradTime.maxTradTime', {
          url: '/maxTradTimeData',
          templateUrl: 'views/analysisSysOM/tradTime/maxTradTime.html',
          controller: 'maxTradTimeController'
        }).state('sas.analysisSysOM.tradTime.minTradTime', {
          url: '/minTradTimeData',
          templateUrl: 'views/analysisSysOM/tradTime/minTradTime.html',
          controller: 'minTradTimeController'
        }).state('sas.analysisSysOM.tradTime.avgTradTime', {
          url: '/avgTradTimeData',
          templateUrl: 'views/analysisSysOM/tradTime/avgTradTime.html',
          controller: 'avgTradTimeController'
        })

        //数据质量管理
        .state('sas.dataQualityMng', {
          url: '/dataQualityMng',
          views: {
            'view': {
              templateUrl: 'views/dataQualityMng/main.html'
            }
          }
        }).state('sas.dataQualityMng.dataDic', {
          url: '/dataDic',
          templateUrl: 'views/dataQualityMng/dataDic.html',
          controller: 'dataQualityMngDataDicCtrl'
        })
        .state('sas.dataQualityMng.cleanHomework', {
          url: '/cleanHomework',
          templateUrl: 'views/dataQualityMng/cleanHomework/cleanHomeworkView.html',
          controller: 'cleanHomeworkController'
        })
        .state('sas.dataQualityMng.cleanHomework.clean', {
          url: '/clean',
          templateUrl: 'views/sysMng/personalPageCustomization/customization.html',
          controller: 'customizationCtrl'
        })
        .state('sas.dataQualityMng.flowsheet', {
          url: '/tree',
          templateUrl: 'views/dataQualityMng/flowsheet.html',
          controller: 'flowsheetCtrl'
        })
        .state('sas.dataQualityMng.bookInstruction', {
          url: '/instruct',
          templateUrl: 'views/dataQualityMng/bookInstruction.html',
          controller: 'indexLibraryCtrl'
        })

        //数据质量应用
        .state('sas.dataQualityMng.dataQualityApplication', {
          url: '/dataQualityApplication',
          templateUrl: 'views/dataQualityMng/dataQualityApplication/head.html',
          controller: 'dataQualityApplicationCtrl'
        })
        //数据质量应用(系统指标应用统计)
        .state('sas.dataQualityMng.dataQualityApplication.systemIndexApplication', {
          url: '/systemIndexApplication',
          templateUrl: 'views/dataQualityMng/dataQualityApplication/systemIndexApplication.html',
          controller:'systemIndexApplicationCtrl'
        })
        //数据质量应用(展示当天预测的业务数据)
        .state('sas.dataQualityMng.dataQualityApplication.businessForecasting', {
          url: '/businessForecasting',
          templateUrl: 'views/dataQualityMng/dataQualityApplication/businessForecasting.html',
          controller:'businessForecastingCtrl'
        })
        //数据质量应用(展示当天的业务数据波动告警预测)
        .state('sas.dataQualityMng.dataQualityApplication.alarmForecast', {
          url: '/alarmForecast',
          templateUrl: 'views/dataQualityMng/dataQualityApplication/alarmForecast.html',
          controller:'alarmForecastCtrl'
        })
          //数据质量应用(数据采集管理)
        .state('sas.dataQualityMng.dataQualityApplication.dataConllectionMgmt', {
          url: '/dataConllectionMgmt',
          templateUrl: 'views/dataQualityMng/dataQualityApplication/dataConllectionMgmt.html',
          controller:'dataConllectionMgmtCtrl'
        })


        //数据质量监控
        .state('sas.dataQualityMng.dataQualityMonitor', {
          url: '/dataQualityMonitor',
          templateUrl: 'views/dataQualityMng/dataQualityMonitor/head.html',
          controller: 'dataQualityMonitorCtrl'
        })
        //数据质量监控(业务处理过程告警统计)
        .state('sas.dataQualityMng.dataQualityMonitor.alarmStatisticsforBP', {
          url: '/alarmStatisticsforBP',
          templateUrl: 'views/dataQualityMng/dataQualityMonitor/alarmStatisticsforBP.html',
          controller: 'alarmStatisticsforBPCtrl'
        })
        //数据质量监控（业务数据波动告警分析）
        .state('sas.dataQualityMng.dataQualityMonitor.businessFluctuationAlarm',{
          url: '/businessFluctuationAlarm',
          templateUrl: 'views/dataQualityMng/dataQualityMonitor/businessFluctuationAlarm.html',
          controller: 'businessFluctuationAlarmCtrl'
        })
        //数据质量监控（数据质量报告）
        .state('sas.dataQualityMng.dataQualityMonitor.dataQualityReport',{
          url: '/dataQualityReport',
          templateUrl: 'views/dataQualityMng/dataQualityMonitor/dataQualityReport.html',
          controller: 'dataQualityReportCtrl'
        })
        //告警数据分析
        .state('sas.alarmDataAnalysis', {
          url: '/alarmDataAnalysis',
          views: {
            'view': {
              templateUrl: 'views/alarmDataAnalysis/main.html'
            }
          }
        })
        //告警数据多维分析
        .state('sas.alarmDataAnalysis.multidimensionalAnalysis', {
          url: '/multidimensionalAnalysis',
          templateUrl: 'views/alarmDataAnalysis/multidimensionalAnalysis/head.html',
          controller: 'mdAnalysisCtrl'
        })
        //告警数据多维分析 分省
        .state('sas.alarmDataAnalysis.multidimensionalAnalysis.analysisDataByProvince', {
          url: '/byProvince',
          templateUrl: 'views/alarmDataAnalysis/multidimensionalAnalysis/analysisDataByProvince.html',
          controller: 'analysisDataByProvinceCtrl'
        })
        //告警数据多维分析 分业务线
        .state('sas.alarmDataAnalysis.multidimensionalAnalysis.analysisDataByBusiness', {
          url: '/byBusiness',
          templateUrl: 'views/alarmDataAnalysis/multidimensionalAnalysis/analysisDataByBusiness.html',
          controller: 'analysisDataByBusinessCtrl'
        })


        //异常交易数据挖掘
        .state('sas.alarmDataAnalysis.abnormalTransDataMining', {
          url: '/abnormalTransDataMining',
          templateUrl: 'views/alarmDataAnalysis/abnormalTransDataMining/head.html',
          controller: 'abnormalTransDataCtrl'
        })
        //异常交易数据挖掘 通过告警返回码分析判断业务故障
        .state('sas.alarmDataAnalysis.abnormalTransDataMining.judgeFaultByAlaBackCode', {
          url: '/judgeFaultByAlaBackCode',
          templateUrl: 'views/alarmDataAnalysis/abnormalTransDataMining/judgeFaultByAlaBackCode.html',
          controller: 'judgeFaultByAlaBackCodeCtrl'
        })
        //异常交易数据挖掘 通过告警爆发时间总结告警规律
        .state('sas.alarmDataAnalysis.abnormalTransDataMining.sumRuleByAlaOutbreakTime', {
          url: '/sumRuleByAlaOutbreakTime',
          templateUrl: 'views/alarmDataAnalysis/abnormalTransDataMining/sumRuleByAlaOutbreakTime.html',
          controller: 'sumRuleByAlaOTCtrl'
        })


        //故障优化分析
        .state('sas.alarmDataAnalysis.faultOptimizationAnalysis', {
          url: '/faultOptimizationAnalysis',
          templateUrl: 'views/alarmDataAnalysis/faultOptimizationAnalysis/head.html'/*,
           controller: 'alaTimelinessAnalysisCtrl'*/
        })
        //异常交易数据挖掘 告警及时性分析
        .state('sas.alarmDataAnalysis.faultOptimizationAnalysis.alaTimelinessAnalysis', {
          url: '/alaTimelinessAnalysis',
          templateUrl: 'views/alarmDataAnalysis/faultOptimizationAnalysis/alaTimelinessAnalysis.html',
           controller: 'alaTimelinessAnalysisCtrl'
        })
        //工单数据
        .state('sas.workOrderData', {
          url: '/workOrderData',
          views: {
            'view': {
              templateUrl: 'views/workOrderData/main.html'
            }
          }
        })
        .state('sas.workOrderData.changeMgmt', {
          url: '/changeMgmt',
          templateUrl: 'views/workOrderData/ppMeasureIndex/ppMeasureIndexView.html',
          controller: 'IndexMgmtController'
        })
        .state('sas.workOrderData.changeMgmt.query', {
          url: '/query',
          templateUrl: 'views/workOrderData/ppMeasureIndex/changeMgmtView.html',
          controller: 'ChangeMgmtController'
        })
        .state('sas.workOrderData.eventMgmt',{
          url: '/eventMgmt',
          templateUrl: 'views/workOrderData/eventMgmt/main.html',
          controller: 'EventMgmtController'
        })
        .state('sas.workOrderData.eventMgmt.query',{
          url: '/query',
          templateUrl: 'views/workOrderData/eventMgmt/eventStatisticView.html',
          controller: 'EventStatisticController'
        })
        .state('sas.workOrderData.eventMgmt.trendQuery',{
          url: '/trendQuery',
          templateUrl: 'views/workOrderData/eventMgmt/eventTrendView.html',
          controller: 'EventTrendController'
        })
        .state('sas.workOrderData.problemMgmt',{
          url: '/problemMgmt',
          templateUrl: 'views/workOrderData/problemMgmt/main.html',
          controller: 'ProblemMgmtController'
        })
        .state('sas.workOrderData.problemMgmt.query',{
          url: '/query',
          templateUrl: 'views/workOrderData/problemMgmt/problemStatisticView.html',
          controller: 'ProblemStatisticController'
        })
        .state('sas.workOrderData.problemMgmt.trendQuery',{
          url: '/trendQuery',
          templateUrl: 'views/workOrderData/problemMgmt/problemTrendView.html',
          controller: 'ProblemTrendController'
        })
        .state('sas.workOrderData.publishMgmt',{
          url: '/publishMgmt',
          templateUrl: 'views/workOrderData/publishMgmt/main.html',
          controller: 'PublishMgmtController'
        })
        .state('sas.workOrderData.publishMgmt.query',{
          url: '/query',
          templateUrl: 'views/workOrderData/publishMgmt/publishStatisticView.html',
          controller: 'PublishStatisticController'
        })
        .state('sas.workOrderData.publishMgmt.trendQuery',{
          url: '/trendQuery',
          templateUrl: 'views/workOrderData/publishMgmt/publishTrendView.html',
          controller: 'PublishTrendController'
        })
        .state('sas.workOrderData.developWorks', {
          url: '/developWorks',
          templateUrl: 'views/workOrderData/developWorks/developWorks.html',
          controller: 'developWorksController'
        })
        .state('sas.workOrderData.developWorks.worksCompared', {
          url: '/worksCompared',
          templateUrl: 'views/workOrderData/developWorks/worksCompared.html',
          controller: 'worksComparedController'
        })
        .state('sas.workOrderData.useAndHandleCondition',{
          url: '/useAndHandleCondition',
          templateUrl: 'views/workOrderData/useAndHandle/main.html',
          resolve: {
            WorkOrderType: function (Restangular) {
              return Restangular.one('sas/common/queryWorkDataType').get().then(
                function success(res) {
                  if (res.state === '10000') {
                    return res.data;
                  } else {
                    return [];
                  }
                }
              )
            }
          }
          // controller: 'PublishMgmtController'
        })
        .state('sas.workOrderData.useAndHandleCondition.query',{
          url: '/query',
          templateUrl: 'views/workOrderData/useAndHandle/useAndHandleView.html',
          controller: 'UseAndHandleController'
        })
        .state('sas.workOrderData.auditData', {
          url: '/auditData',
          templateUrl: 'views/workOrderData/auditData/main.html',
          controller: 'auditDataController'
        })
        .state('sas.workOrderData.auditData.passRate', {
          url: '/passRate',
          templateUrl: 'views/workOrderData/auditData/passRateView.html',
          controller: 'passRateController'
        })
        .state('sas.workOrderData.auditData.NCRate', {
          url: '/NCRate',
          templateUrl: 'views/workOrderData/auditData/NCRateView.html',
          controller: 'NCRateController'
        })
        .state('sas.workOrderData.auditData.notPassNC', {
          url: '/notPassNC',
          templateUrl: 'views/workOrderData/auditData/notPassNCView.html',
          controller: 'notPassNCController'
        })




        //用户行为指标分析
        .state('sas.userBehaviorAnalysis', {
          url: '/userBehaviorAnalysis',
          views: {
            'view': {
              templateUrl: 'views/userBehaviorAnalysis/main.html'
            }
          }
        })
        //用户行为指标分析(用户流失率分析)
        .state('sas.userBehaviorAnalysis.userChurnAnalysis', {
          url: '/userChurnAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/userChurnAnalysis/head.html',
          controller: 'userChurnAnalysisCtrl'
        })
        //用户流失率分析(用户流失量分析)
        .state('sas.userBehaviorAnalysis.userChurnAnalysis.dUserChurnAnalysis', {
          url: '/dUserChurnAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/userChurnAnalysis/dUserChurnAnalysis.html',
          controller: 'dUserChurnAnalysisCtrl'
        })
        //用户流失率分析(用户流失率分析)
        .state('sas.userBehaviorAnalysis.userChurnAnalysis.userChurnRateAnalysis', {
          url: '/userChurnRateAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/userChurnAnalysis/userChurnRateAnalysis.html',
          controller: 'userChurnRateAnalysisCtrl'
        })
        //用户流失率分析(流失用户具体信息分析)
        .state('sas.userBehaviorAnalysis.userChurnAnalysis.userLossDIAnalysis', {
          url: '/userLossDIAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/userChurnAnalysis/userLossDIAnalysis.html',
          controller: 'userLossDIAnalysisCtrl'
        })
        //用户行为指标分析(成功率感知用户流失率分析)
        .state('sas.userBehaviorAnalysis.srPerceptionUwrAnalysis', {
          url: '/srPerceptionRuqAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/srPerceptionUwrAnalysis/main.html',
          controller: 'srPerceptionUwrAlCtrl'
        })
        //成功率感知用户流失率分析(成功率感知流失用户量分析)
        .state('sas.userBehaviorAnalysis.srPerceptionUwrAnalysis.srPerceptionRuqAnalysis', {
          url: '/srPerceptionRuqAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/srPerceptionUwrAnalysis/srPerceptionRuqAnalysis.html',
          controller: 'srPerceptionRuqAnalysisCtrl'
        })
        //成功率感知用户流失率分析(成功率感知用户流失率分析)
        .state('sas.userBehaviorAnalysis.srPerceptionUwrAnalysis.srPerceptionUwrAnalysis', {
          url: '/srPerceptionUwrAnalysis',
          templateUrl: 'views/userBehaviorAnalysis/srPerceptionUwrAnalysis/srPerceptionUwrAnalysis.html',
          controller: 'srPerceptionUwrAnalysisCtrl'
        })
    });
})();